<template>
	<view class="box">
			 <video :style="{height:props.obj.data[0].height+'px'}" :src="props.obj.data[0].url" :autoplay="props.obj.autoplay"
			      :loop="props.obj.loop"   :muted="props.obj.muted"   :controls="props.obj.controls"></video>
	</view>
</template>

<script setup>
	import {
		ref,
		reactive,
		getCurrentInstance,
		defineProps
	} from "vue";
	import {
		onLoad,
		onShow,
	} from "@dcloudio/uni-app";
	const props = defineProps(['obj','type'])
</script>

<style lang="scss" scoped>
	.box{
		padding: 20rpx;
			video{
				width: 100%;
			}
	}
</style>